<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="keywords" content="${content.tagStr!}"/>
    <meta http-equiv="description" content="${content.description!}"/>

    <title>评论页 - ${site.name}</title>
    <!-- Pretty Photo CSS -->
    <link href="/${res}/css/prettyPhoto.css" rel="stylesheet">
    <!-- Custom Main StyleSheet CSS -->
    <link href="/${res}/style.css" rel="stylesheet">
    <!-- Color CSS -->
    <link href="/${res}/css/color.css" rel="stylesheet">
    <!-- Responsive CSS -->
    <link href="/${res}/css/responsive.css" rel="stylesheet">

    <script src="${resSys}/jquery.js" type="text/javascript"></script>
    <script src="${resSys}/jqueryUI/jquery-ui.js" type="text/javascript"></script>
    <script src="${resSys}/front.js" type="text/javascript"></script>
    <!--<link type="text/css" rel="stylesheet" href="/${res}/css/index.css" />-->

</head>

<body>

<div class="gt_wrapper">
    [#include "../include/nav2.html"/]
    <div class="gt_sub_banner_bg default_width">
        <div class="container">
            <div class="gt_sub_banner_hdg  default_width">
                <h2>Blog Listing</h2>
                <h6>Welcome To Educskill</h6>
            </div>
        </div>
    </div>
    <div class="gt_content_wrap">
        <section class="gt_courses_bg">
            <div class="container">
                <div class="row">

                    <div class="col-md-9">
                        <div class="main">
                            <section class="comments-list" style="padding-left: 20px;">
                                <h4>评论主题: <a href="${content.url}">${content.title}</a></h4>
                                <div class="content-inf">发布时间：${content.releaseDate}&nbsp;&nbsp;作者：${content.author!'本站编辑'}&nbsp;&nbsp;来源：${content.origin!'本站原创'}&nbsp;&nbsp;浏览次数：<span
                                        id="views"></span></div>
                                <h1><span>用户评论</span></h1>
                                [@cms_comment_page contentId=contentId count='15' checked='1']
                                [#if tag_pagination.list?size = 0]
                                <span>暂无相关评论！</span>
                                [#else]
                                [#list tag_pagination.list as c]
                                <div class="comments-item">
                                    <div class="tx">
                                        <img src="${base}/${(c.commentUser.userImg)!'${site.defImg!}'}">
                                    </div>
                                    <div class="rig">
                                        <div class="rig-top"><a class="username">[#if
                                            c.commentUser??]${(c.commentUser.username)!"匿名网友"}[#else]匿名网友[/#if]</a><em>
                                            ${c.createTime} </em></div>
                                        <div class="rig-txt">${c.textHtml!}</div>
                                        <div class="rig-bottom">
                                            <a class="comments-zan"
                                               onclick="Cms.commentUp('${base}',${c.id},${c.ups},'commentups_${c.id}')">赞<span
                                                    id="commentups_${c.id}">${c.ups!}</span></a>
                                            <!--
                                            <span class="commentdown" onclick="Cms.commentDown('${base}',${c.id},${c.downs},'commentdowns_${c.id}')">踩</span>
                                            <span id="commentdowns_${c.id}">${c.downs!}</span>
                                                    -->
                                            <a class="comments-hf" id="commentreply_${c.id}"
                                               onclick="Cms.commentInputLoad('${base}','commentInputDiv_','commentInputDiv_${c.id}','${contentId!}','${c.id}')">回复</a>
                                        </div>
                                        <div id="commentInputDiv_${c.id}"></div>
                                        [#if c.replyCount>0]
                                        <div class="comments-item comments-child">
                                            <div class="tx"><img
                                                    src="[#if c.replayUser??]${(c.replayUser.userImg)!'${site.defImg!}'}[#else]'${site.defImg!}'[/#if]">
                                            </div>
                                            <div class="rig">
                                                <div class="rig-top"><a class="username">[#if
                                                    c.replayUser??]${(c.replayUser.username)!"管理员"}[#else]管理员[/#if]</a>
                                                    <em>[#if c.replayTime??]${c.replayTime?string("yyyy-MM-dd
                                                        HH:mm:ss")}[/#if]</em></div>
                                                <div class="rig-txt">${c.replayHtml!}</div>
                                                <div class="rig-bottom">
                                                    <a class="comments-zan"
                                                       onclick="Cms.commentUp('${base}',${c.id},${c.ups},'commentups_${c.id}')">赞<span
                                                            id="commentups_${c.id}">${c.ups!}</span></a>

                                                    <span class="commentdown"
                                                          onclick="Cms.commentDown('${base}',${c.id},${c.downs},'commentdowns_${c.id}')">踩</span>
                                                    <span id="commentdowns_${c.id}">${c.downs!}</span>
                                                    <span id="commentreply_${c.id}"
                                                          onclick="Cms.commentInputLoad('${base}','commentInputDiv_','commentInputDiv_${c.id}','${contentId!}','${c.id}')">回复</span>
                                                    [#if c.replyCount>0]
                                                    <span id="commentviewreply_${c.id}"
                                                          onclick="Cms.commentListMore('${base}','commentDialog',{parentId:${c.id},contentId:${contentId!},orderBy:0,count:5,checked:1})">查看回复(${c.replyCount!})</span>
                                                    [/#if]
                                                    <div id="commentInputDiv_${c.id}"></div>
                                                </div>
                                                <div class="reply"><textarea class="reply-text"></textarea>
                                                    <div><input type="submit" value="回复" class="reply-btn"></div>
                                                </div>
                                            </div>
                                        </div>
                                        [/#if]
                                    </div>
                                </div>
                                [/#list]
                                <div class="pagebar">[@cms_pagination sysPage='1'/]</div>
                                [/#if]
                                [/@cms_comment_page]
                                <div id="commentDialog" style="display:none;"></div>

                                <script type="text/javascript">
                                    $(function () {
                                        $("#commentDialog").dialog({
                                            autoOpen: false,
                                            modal: true,
                                            width: 500,
                                            height: 600,
                                            position: ["center", 20],
                                            buttons: {
                                                "关闭": function () {
                                                    $(this).dialog("close");
                                                }
                                            },
                                            close: function (event, ui) {

                                            }
                                        });
                                    });
                                </script>
                            </section>
                            [#include "../content/inc_comment_input.html"/]

                        </div>
                    </div>
                    <div class="col-md-3">
                        <section class="tag">
                            <div class="tag-nav"><h5>大家都在搜</h5></div>
                            <div class="tagList">
                                <div style="" class="cTag">
                                    [@cms_searchword_list word='' siteId='1' recommend='1' orderBy='4' count='11']
                                    [#list tag_list as word]
                                    <a href="${base}/search.jspx?q=${word.name!}">${word.name!}</a>
                                    [/#list]
                                    [/@cms_searchword_list]
                                </div>
                            </div>
                        </section>
                        [@cms_content_list typeId='1' count='5' orderBy='1' channelId=99 channelOption='0']

                        <div class="gt_featured_course_list gt_aside2_hdg mb30">
                            <h5>热点新闻</h5>
                            <ul class="gt_aside_fea_course">
                                [#list tag_list as a]
                                <li>
                                    <figure>
                                        <img src="${a.contentImg!}" alt="">
                                    </figure>
                                    <div class="aside_fea_course_des">
                                        <h6><a href="${a.url}">[@text_cut s=a.title len='22' append='...' /]</a></h6>
                                        <span>评论  (${a.contentCount.comments!})</span>
                                    </div>
                                </li>
                                [/#list]
                            </ul>
                        </div>
                        [/@cms_content_list]
                    </div>
                </div>
            </div>
        </section>

    </div>
</div>

[#include "../include/footer.html"/]
</body>
</html>
